package br.ufrn.engcomp.arq.messages;
/**
 * 
 * @author Claudio
 * 
 */
import javax.faces.application.FacesMessage; 
import javax.faces.context.FacesContext; 

import br.ufrn.engcomp.arq.messages.MessagesControl;

public class MessagesWeb extends MessagesControl { 
	public MessagesWeb() { 
		super(); 
	} 
	
	@Override 
	public void addMessage(String message) { 
		FacesMessage msg = new FacesMessage(FacesMessage.SEVERITY_ERROR, getMessage(message) , "Erro_"); 
		FacesContext.getCurrentInstance().addMessage(null, msg); 
	} 
}